import {
	request
} from "../common/config.js"

// 搜索框默认搜索信息
export function getShowKeyword() {
	return request({
		url: '/search/default',
		method: 'get'
	})
}

// 搜索框建议
export function getSuggest(keywords) {
	return request({
		url: `/search/suggest?keywords=${keywords}&type=mobile`,
		method: 'get'
	})
}

//点击搜索到的值
export function getmylist(params) {
	return request({
		url: `/cloudsearch`,
		params,
		method: "get"
	})
}

// 热门搜索
export function getHotSearch() {
	return request({
		url: '/search/hot/detail',
		method: 'get'
	})
}


// 获取mv
export function getMv(id) {
	return request({
		url: `/mv/url?id=${id}`,
		method: 'get'
	})
}

// 获取mv详情
export function getMvDetail(id) {
	return request({
		url: `/mv/detail?mvid=${id}`,
		method: 'get'
	})
}

// 获取相似MV
export function getResembleMv(id){
	return request({
		url:`/simi/mv?mvid=${id}`
	})
}

//获取歌手粉丝数量
export function getArtistFans(aid){
	return request({
		url:`/artist/follow/count?id=${aid}`,
		method:'get'
		
	})
}
// 获取 mv 点赞转发评论数数据
export function getMvInfo(mid){
	return request({
		url:`/mv/detail/info?mvid=${mid}`,
		method:'get'
	})
}

// mv评论
export function getMvComment(id,limit){
	return request({
		url:`/comment/mv?id=${id}&limit=${limit}`,
		method:'get'
	})
}